package com.yanqu.road.entity.activity.hsisland;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public class HsIslandVarianceData {

    /**
     * 4格坐标组
     */
    private Map<String, List<HsIslandPosition>> fourPositionMap;

    /**
     * 方差值
     */
    private BigDecimal variance;

    public HsIslandVarianceData(Map<String, List<HsIslandPosition>> fourPositionMap, BigDecimal variance) {
        this.fourPositionMap = fourPositionMap;
        this.variance = variance;
    }

    public Map<String, List<HsIslandPosition>> getFourPositionMap() {
        return fourPositionMap;
    }

    public void setFourPositionMap(Map<String, List<HsIslandPosition>> fourPositionMap) {
        this.fourPositionMap = fourPositionMap;
    }

    public BigDecimal getVariance() {
        return variance;
    }

    public void setVariance(BigDecimal variance) {
        this.variance = variance;
    }

    /**
     * 4格子数量
     * @return
     */
    public int getFourPositionNum() {
        return fourPositionMap.size();
    }
}
